#-------------------------------------------------
#
# Project created by QtCreator 2013-07-20T07:54:28
#
#-------------------------------------------------

QT       += core gui widgets xml network webkitwidgets webkit
CONFIG   += c++11

TEMPLATE = app
DESTDIR  = ../sleeper/bin

UI_DIR  = build
RCC_DIR = build

CONFIG(debug, debug|release) {
    TARGET = sleeperd

    CONFIG += console
    OBJECTS_DIR = build/debug
    MOC_DIR     = build/debug

}
else {
    TARGET = sleeper

    OBJECTS_DIR = build/release
    MOC_DIR     = build/release
}

SOURCES += src/main.cpp\
    src/versiondialog.cpp \
    src/rpcclient.cpp \
    src/smsmainwindow.cpp \
    src/smssettingsdialog.cpp \
    src/addmoledialog.cpp \
    src/devicemodel.cpp \
    src/htmldelegate.cpp \
    src/devicestatusboard.cpp \
    src/deviceproxymodel.cpp \
    src/senddialog.cpp

HEADERS  += \
    src/versiondialog.h \
    src/rpcclient.hpp \
    src/smsmainwindow.hpp \
    src/smssettingsdialog.hpp \
    src/addmoledialog.hpp \
    src/devicemodel.hpp \
    src/htmldelegate.hpp \
    src/devicestatusboard.hpp \
    src/deviceproxymodel.hpp \
    src/senddialog.hpp

FORMS    += \
    src/smsmainwindow.ui \
    src/smssettingsdialog.ui \
    src/addmoledialog.ui \
    src/devicestatusboard.ui \
    src/senddialog.ui

include(src/header_view/header_view.pri)
include(src/qmaps/qmaps.pri)
include(src/progressIndicator/progress_indicator.pri)

include(config.pri)

INCLUDEPATH += ../modemsrv/src ../utils src
LIBS +=        -L../sleeper/lib

RESOURCES += \
    smsgui.qrc

CONFIG(debug, debug|release) {
    LIBS += -lmoleutilsd
    LIBS += -lqloggerd
    LIBS += -lqtxmlrpcd
} else {
    LIBS += -lmoleutils
    LIBS += -lqtxmlrpcd
    LIBS += -lqlogger
}

RCC_DIR = build
win32:RC_FILE = app.rc

OTHER_FILES += \
    ../sleeper/bin/gmap/map.html \
    ../sleeper/bin/gmap/map.js \
    ../sleeper/bin/gmap/label.js
